package com.tmsps.ne4spring2.core;

import com.tmsps.ne4spring2.model.DbModel;

public interface OrmPersistence {

	public <T extends DbModel> void saveObj(T obj);

	public <T extends DbModel> void updateObj(T obj);

	public <T extends DbModel> void delObj(T obj);

	public <T extends DbModel> void delObjById(Object id, Class<T> clazz);

	public <T extends DbModel> void delRealObj(T obj);

	public <T extends DbModel> void delRealObjById(Object id, Class<T> clazz);

	public <T extends DbModel> DbModel findObjById(String _id, Class<T> clazz);

	public <T extends DbModel> DbModel findObj(String sql, Class<T> clazz);

	public <T extends DbModel> DbModel findObj(String sql, Object[] args, Class<T> clazz);

}
